<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Insert title here</title>
<style type="text/css">
#insert{
	display: inline-block;
	margin-left: 35%;
	margin-top: 40px;
}


</style>
</head>
<body>

<div id="insert">
	<form action="/employee/insertemp">
	<table border="1">
		<tr>
		<td>电话</td>
		<td><input type="text" name="phone"></td>
		</tr>
		<tr>
		<td>姓名</td>
		<td><input type="text" name="name"></td>
		</tr>
		<tr>
		<td>年龄</td>
		<td><input type="text" name="age"></td>
		</tr>
		<tr>
		<td>薪水</td>
		<td><input type="text" name="salary"></td>
		</tr>
		<tr>
		<td>部门</td>
		<td>
			<select name="dId">
				<option>请选择部门</option>
				<c:forEach items="${deptlist }" var="dept">
					<option value="${dept.id }">${dept.deptName }</option>
				</c:forEach>
			</select>
		</td>
		</tr>
		<tr>
		<td><input type="submit" value="添加"></td>
		</tr>
	</table>
	</form>
</div>


</body>
</html>